const { createHttp } = require("wechat-http")

Page({
  data: {
    top:20,
  },
  onLoad() {
    const res = wx.getSystemInfoSync()
    this.setData({ top: res.statusBarHeight })
    this.getTask()
},
 async getTask(){
const res = await wx.$http.get('/driver/tasks/list',{page:1,pageSize:5,status:1})
console.log(res);
}
})
